#ifndef _WIFI_H
#define _WIFI_H
#include <string.h>
#include "usart.h"
extern uint8_t USART2_RxBuff[1024];
extern uint8_t USART2_RxCounter;
#define WiFi_RxCounter USART2_RxCounter
#define WiFi_RX_BUF USART2_RxBuff
#define ESP8266_USART(fmt, ...) USART_printf(&huart2, fmt, ##__VA_ARGS__)
#define u1_USART(fmt, ...) USART_printf(&huart3, fmt, ##__VA_ARGS__)
#define ID	"ljm"
#define PASSWORD	"123456789"

#define ServerIP ALI_MQTT_HOSTURL
#define ServerPort ALI_PORT

char WIFI_Config0(int time);
char WIFI_Config(int time, char *cmd, char *response);
char WIFI_Router(int time);
char WIFI_ConnectTCP(int time);
void WIFI_Connect(void);
void ESP8266_Clear(void);


#endif
